<?php
namespace app\index\controller;
use think\Db;
use think\Controller;

class Select extends Controller
{
	public function index()
	{
        	$parent = ['id' => '0'];
                $this->assign('parent', $parent);
                
        	$rs=input('get.id');
                //var_dump($rs);die();
                $where['id'] = ['like','%'.input('get.id').'%'];
        	$news=Db::name('ysnews')->where($where)->order('sorts asc')->select();//新闻喜讯
                $this->assign('news',$news);

                
                $dh=Db::name('ysdaohang')->order('sorts asc')->select();//导航
                $this->assign('dh',$dh);

                return $this->fetch();//这里  都return了
	}

}


?>